home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Sample Controls / Ticker / CTickerError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-20  |  1.2 KB  |  42 lines  |  [TEXT/CWIE]

  1. #ifndef __CTickerError_h__
  2. #define __CTickerError_h__
  3.  
  4. #include "CError.h"
  5.  
  6. class CTick;
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. //
  10. // constants
  11. //
  12.  
  13. #define CONTROL_GWORLD_ALLOCATION_ERROR        (BaseErrorCodeTicker + 0)
  14. #define TICK_GWORLD_ALLOCATION_ERROR        (BaseErrorCodeTicker + 1)
  15. #define FONTINFO_ALLOCATION_ERROR            (BaseErrorCodeTicker + 2)
  16. #define NAME_TOKENIZE_ALLOCATION_ERROR        (BaseErrorCodeTicker + 3)
  17. #define VALUE_TOKENIZE_ALLOCATION_ERROR        (BaseErrorCodeTicker + 4)
  18. #define TICK_NAME_ALLOCATION_ERROR            (BaseErrorCodeTicker + 5)
  19. #define TICK_VALUE_ALLOCATION_ERROR            (BaseErrorCodeTicker + 6)
  20. #define DATA_ALLOCATION_ERROR                (BaseErrorCodeTicker + 7)
  21. #define DATA_REALLOCATION_ERROR                (BaseErrorCodeTicker + 8)
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. //
  25. // CTickerError class definition
  26. //
  27.  
  28. class CTickerError : public CError
  29. {
  30. public:
  31.     CTickerError(ErrorCode error);
  32.     CTickerError(ErrorCode error, CErrorControl * control);
  33.     CTickerError(ErrorCode error, CTick * tick);
  34.     virtual void Init(ErrorCode error, CErrorControl * control);
  35.     virtual void HandleError(void);
  36.  
  37. protected:
  38.     CTick * mTick;
  39. };
  40.  
  41. #endif // __CTickerError_h__
  42.